<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    {foreach $props as $id=>$prop}
    <dl class="fieldlist" data-name="row[attrs][{$id}][]" data-template="attrstpl{$id}">
       <dd>
           <ins>{$prop}</ins>
       </dd>
        {foreach $prePropList[$id] as $preProp}
        <dd class="form-inline">
            {:build_select('row[attrs]['.$id.'][]',$propValues[$id],['id'=>$preProp['value']],['class'=>'selectpicker', 'required'=>''])}
            <input type="number" name="row[price][{$id}][]" class="form-control" value="{$preProp['price']}" size="10"> 
            <span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span> <span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span>
        </dd>
        {/foreach}
       <dd> 
           <a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> 追加</a>
       </dd>
    </dl>
    <script type="text/html" id="attrstpl{$id}">
        <dd class="form-inline">
            {:build_select('row[attrs]['.$id.'][]',$propValues[$id],[],['class'=>'selectpicker', 'required'=>''])}
            <input type="number" name="row[price][{$id}][]" class="form-control" size="10"> 
            <span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span> <span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span>
        </dd>
    </script>
    {/foreach}
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
